/* 
 * Since 2008 - 2012
 */
package com.hh.bss.customer.vo.query;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import java.io.Serializable;

import java.util.*;

import com.hh.bss.base.*;
import com.hh.bss.common.page.*;
import com.hh.bss.common.page.impl.*;
import com.hh.bss.customer.dao.*;
import com.hh.bss.customer.entity.*;
import com.hh.bss.customer.service.*;
import com.hh.bss.customer.vo.query.*;
import com.hh.bss.util.*;





public class CustomerCrmQuery extends BaseQuery implements Serializable {
    private static final long serialVersionUID = 3148176768559230877L;
    

	/** id */
	private java.lang.Integer id;
	/** 客户id */
	private java.lang.Integer custId;
	/** BD帐户，默认为录入人 */
	private java.lang.String bdAccount;
	/** 客户联系人id */
	private java.lang.Integer contacterId;
	/** 计划联系时间 */
	private java.util.Date planDtBegin;
	private java.util.Date planDtEnd;
	/** 任务标题 */
	private java.lang.String crmTitle;
	/** 联系方式 */
	private java.lang.String crmType;
	/** 联系状态 */
	private Integer crmStatus;
	/** 实际联系时间 */
	private java.util.Date crmDtBegin;
	private java.util.Date crmDtEnd;
	/** 联系时长（分钟) */
	private java.lang.Integer minutes;
	/** 联系内容 */
	private java.lang.String comment;
	/** creator */
	private java.lang.String creator;
	/** createDt */
	private java.util.Date createDtBegin;
	private java.util.Date createDtEnd;
	/** modifier */
	private java.lang.String modifier;
	/** modifiedDt */
	private java.util.Date modifiedDtBegin;
	private java.util.Date modifiedDtEnd;

	public java.lang.Integer getId() {
		return this.id;
	}
	
	public void setId(java.lang.Integer value) {
		this.id = value;
	}
	
	public java.lang.Integer getCustId() {
		return this.custId;
	}
	
	public void setCustId(java.lang.Integer value) {
		this.custId = value;
	}
	
	public java.lang.String getBdAccount() {
		return this.bdAccount;
	}
	
	public void setBdAccount(java.lang.String value) {
		this.bdAccount = value;
	}
	
	public java.lang.Integer getContacterId() {
		return this.contacterId;
	}
	
	public void setContacterId(java.lang.Integer value) {
		this.contacterId = value;
	}
	
	public java.util.Date getPlanDtBegin() {
		return this.planDtBegin;
	}
	
	public void setPlanDtBegin(java.util.Date value) {
		this.planDtBegin = value;
	}	
	
	public java.util.Date getPlanDtEnd() {
		return this.planDtEnd;
	}
	
	public void setPlanDtEnd(java.util.Date value) {
		this.planDtEnd = value;
	}
	
	public java.lang.String getCrmTitle() {
		return this.crmTitle;
	}
	
	public void setCrmTitle(java.lang.String value) {
		this.crmTitle = value;
	}
	
	public java.lang.String getCrmType() {
		return this.crmType;
	}
	
	public void setCrmType(java.lang.String value) {
		this.crmType = value;
	}
	
	public Integer getCrmStatus() {
		return this.crmStatus;
	}
	
	public void setCrmStatus(Integer value) {
		this.crmStatus = value;
	}
	
	public java.util.Date getCrmDtBegin() {
		return this.crmDtBegin;
	}
	
	public void setCrmDtBegin(java.util.Date value) {
		this.crmDtBegin = value;
	}	
	
	public java.util.Date getCrmDtEnd() {
		return this.crmDtEnd;
	}
	
	public void setCrmDtEnd(java.util.Date value) {
		this.crmDtEnd = value;
	}
	
	public java.lang.Integer getMinutes() {
		return this.minutes;
	}
	
	public void setMinutes(java.lang.Integer value) {
		this.minutes = value;
	}
	
	public java.lang.String getComment() {
		return this.comment;
	}
	
	public void setComment(java.lang.String value) {
		this.comment = value;
	}
	
	public java.lang.String getCreator() {
		return this.creator;
	}
	
	public void setCreator(java.lang.String value) {
		this.creator = value;
	}
	
	public java.util.Date getCreateDtBegin() {
		return this.createDtBegin;
	}
	
	public void setCreateDtBegin(java.util.Date value) {
		this.createDtBegin = value;
	}	
	
	public java.util.Date getCreateDtEnd() {
		return this.createDtEnd;
	}
	
	public void setCreateDtEnd(java.util.Date value) {
		this.createDtEnd = value;
	}
	
	public java.lang.String getModifier() {
		return this.modifier;
	}
	
	public void setModifier(java.lang.String value) {
		this.modifier = value;
	}
	
	public java.util.Date getModifiedDtBegin() {
		return this.modifiedDtBegin;
	}
	
	public void setModifiedDtBegin(java.util.Date value) {
		this.modifiedDtBegin = value;
	}	
	
	public java.util.Date getModifiedDtEnd() {
		return this.modifiedDtEnd;
	}
	
	public void setModifiedDtEnd(java.util.Date value) {
		this.modifiedDtEnd = value;
	}
	
	private String field_type;
	private String query;

	public String getField_type() {
		return field_type;
	}

	public void setField_type(String file_type) {
		this.field_type = file_type;
	}

	public String getQuery() {
		return query;
	}

	public void setQuery(String query) {
		this.query = query;
	}
        private String sort;
	private String dir;

        public String getSort() {
		return sort;
	}

	public void setSort(String sort) {
		
		this.sort = sort;
		if (!StringHelper.isEmpty(sort)&&!StringHelper.isEmpty(dir))
		  this.setSortColumns(sort+" "+dir);
	}

	public String getDir() {
		return dir;
	}

	public void setDir(String dir) {
		this.dir = dir;
	}
	public String toString() {
		return ToStringBuilder.reflectionToString(this,ToStringStyle.MULTI_LINE_STYLE);
	}
	
}

